package com.amit.Basic_Simple_Program;

public class Maximum_Element_Array {

	public static void main(String[] args) 
	{

		int a[]={12,0,56,-1,34,77,9};
		int max=a[0];
		
		for(int i=0;i<a.length;i++)
		{
			if(a[i]>max)
			{
				max=a[i];
			}
		}
		
		System.out.println("Max element in array "+max);
		
	}

}
